home *** CD-ROM | disk | FTP | other *** search
Text File | 2000-01-21 | 5.9 KB | 125 lines | [TEXT/R*ch] |
- ############### Example Optimizer Script #########
- #
- #
- # Only lines starting with 'p', 'v', 'i', and 'm' are read.
- # The script must contain:
- # one 'p'- line describing the final panorama
- # one 'i'-line for every input image
- # one 'v'- line listing the variables to be optimized
- # the 'm'-line is optional and allows you to specify modes for the optimization.
- #
- #
- # Script syntax:
- # ==============
- #
- # 'p'-line options
- # ----------------
- # w1000 specify width in pixels
- # h600 specify height in pixels (default: width/2)
- # f0 specify projection format, 0-rectilinear (for printing and viewing)
- # 1-Cylindrical (for Printing and QTVR)
- # 2- Equirectangular ( for Spherical panos) , default
- #v360 specify horizontal field of view of panorama (default 360)
- #nPICT specify Panorama file format, one of:
- # PICT pict-file on macs, bmp-file on win (default)
- # PSD_mask Photoshop file, one image per layer
- # + masks for stitching
- # PSD_nomask Photoshop file, one image per layer,
- # no stitching masks
- # PAN SmoothMove movie. Use only with f2.
- # IVR LivePicture IVR movie
- # cylindrical (format f1) or spherical (format f2)
- # IVR_java LivePicture Java Panorama,
- # cylindrical (format f1) or spherical (format f2)
- # VRML VRML background node, use only with f2
- # QTVR Apple QTVR-panomovie. Use only with f1
- # JPEG Panoramic image, jpeg format
- #
- #n"QTVR w400 h300 c1" specify additional viewer options in a quoted string together with format
- # the following options are recognized
- # w(width) and h(height) of viewer window (only QTVR on Macs)
- # c(codec: 0-JPEG, 1-Cinepak, 2-Sorenson) (only QTVR on Macs)
- # q(codec quality):
- # 0-high,1-normal,2-low QTVR on Macs
- # 0-100(highest) on other jpeg-formats (PAN, IVR, IVR_java, VRML)
-
- # g progressive jpeg (0-no, 1-yes) (PAN, IVR, IVR_java, VRML)
- # p initial pan angle ( QTVR on Macs, VRML, IVR)
- # v field of view (QTVR, VRML, IVR)
- # Many more options can be set by editing the viewer scripts
- #
- #-buf suppress buffer commands in the stitcher script generated by PTOptimizer. This option should
- # be set if you wish to edit the final panoramic image, eg for the two PSD formats.
- #
-
- p w2000 nPSD_mask -buf
-
- #
- # 'i'-line options
- # ----------------
- # f0 specify projection format, 0-rectilinear (normal lenses)
- # 1-Panoramic (Scanning cameras like Noblex)
- # 2- Circular fisheye
- # 3- full-frame fisheye
- # 4- PSphere (equirectangular)
- #v82 specify horizontal field of view of image (required)
- #y0 initial yaw angle (required)
- #p43 initial pitch angle (required)
- #r0 initial roll angle (required)
- #a,b,c initial lens correction coefficients (optional)
- # (see http://www.fh-furtwangen.de/~dersch/barrel/barrel.html)
- #d,e horizontal/vertical shift of optical axis (in pixel)
- #u10 specify width of feather for stitching. default:10
- #m20 ignore a frame 20 pixels wide. default: 0
- #mx100 crop to brightest rectangle with size 100x200;
- #my200 used only for circular fisheye images (f2)
- #s0 specify placement of seam between buffer and image:
- # 0-middle of overlap('blend' ,default)
- # 1- at edge of image ('paste').
- #k1 attempt colour/brightness correction when merging
- # image and buffer, one of 0- no correction(default);
- # 1-change image; 2-change buffer; 3-change both
- # this feature does not work very well!
- #
- # Parameters in different images can be linked using '='
- # followed by the image number starting with 0.
- # Example 'v=0' sets horizontal field of view as in
- # image number 0. This feature works for the variables
- # v,a,b,and c.
- #
-
- i f2 y0 p0 r0 v185 a0 b0.2 c0
- i f2 y180 p0 r0 v=0 a=0 b=0 c=0
-
-
- # 'v'-line options:
- # -----------------
- # Please note: the 'v'-line must come after the the 'i'-lines.
- # Optimization variables are listed together with the image number
- # starting at 0.
- #
- #y0 Optimize yaw in image 0
- #p1 Optimize pitch in image 1
- #r2 Optimize roll in image 2
- #v0 Optimize field of view im image 0
- #a2 Optimize lens correction parameter 'a' in image 2
- # b and c can be equally optimized.
- #
-
- v v0 r1 p1 y1
-
- #
- # 'm'-line options
- # ----------------
- # Set mode for optimization, not required
- #
- #g2.5 Set gamma value for internal computations (default 1.0)
- # See <http://www.fh-furtwangen.de/~dersch/gamma/gamma.html>
- #i2 Set interpolator, one of 0-poly3 (default)
- # 1-spline16, 2-spline36, 3-sinc256
- # See <http://www.fh-furtwangen.de/~dersch/interpolator/interpolator.html>
- #p0 Should the optimizer create a panorama when finished?
- # 1-yes (default); 0-no, just create the stitcher script.
-
- #m g2.5
-